package com.gxt.basic.utils;

import com.gxt.org.domain.Employee;

public class LoginContext {

    /**
     * 登录成功后调用
     * @param loginUser
     */
    public static void setLoginUser(Employee loginUser){
        //暂时不实现--要存放session,redis

    }


    /**
     * 获取登录用户
     * @return
     */
    public static Employee getLoginUser(){
        //从session或者redis中获取  现在模拟获取一个用户
        Employee employee = new Employee();
        employee.setId(1L);
        employee.setUsername("admin");
        return employee;

    }

}
